package com.aloda.utils;

import java.util.regex.Pattern;

public class EmailUtils {

    public static boolean checkEmail(String email) {
        // 校验邮箱
        Pattern emailPattern = Pattern.compile("^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$");
        return email != null
                && !email.isEmpty()
                && emailPattern.matcher(email).matches();
    }
}
